package com.iplant.wms.service.po.brm;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.iplant.base.po.BasePO;
import com.iplant.base.po.enums.DBSchemas;
import com.iplant.base.utils.annotation.po.DBBasePO;
import com.iplant.base.utils.annotation.condition.DBCondition;
import com.iplant.base.utils.annotation.field.DBField;

import java.io.Serializable;



/**
 * 预配规则
 *
 * @author ShrisJava
 */
@DBBasePO(TableName = "brm_distributionrule",  CheckName = {"Code","Name"},
        Schemas = DBSchemas.WMS,CodeAuto = true,CodePrefix = "BDR-")
public class BRMDistributionRule extends BasePO implements Serializable {
    private static final long serialVersionUID = 1L;


    /**
     * 预配方式
     */
    @DBCondition
    @DBField
    public int Method = 1;

    /**
     * 优先类型
     */
    @DBCondition
    @DBField
    public int FirstType = 1;

    @JsonProperty("Method")
    public int getMethod() {
        return Method;
    }

    public void setMethod(int method) {
        Method = method;
    }

    @JsonProperty("FirstType")
    public int getFirstType() {
        return FirstType;
    }

    public void setFirstType(int firstType) {
        FirstType = firstType;
    }
}
